package jp.eisbahn.mgapi.http;

import java.io.IOException;

/**
 * This interface defines a method for the HTTP communication.
 * @author Yoichiro Tanaka
 */
public interface HttpFetcher {

    /**
     * Access to HTTP server and retrieve the response.
     * @param request HTTP request object.
     * @return The fetched content.
     * @throws IOException If some errors occurred while accessing the server.
     */
    HttpResponse fetch(HttpRequest request) throws IOException;

}
